<?php

Yii::import('zii.widgets.CPortlet');

class SideBar extends CPortlet
{
	public $title='Aktuelles:';
	public $infoTitle='Infos:';
	public $hasNews=true;
	public $hasInfoOnly=false;
	public $hasInfo=true;	
	public $infoText='?';
	
	public function init()
    {
        parent::init();
    }
	

	protected function renderContent()
	{
		if($this->hasInfoOnly){
			$this->widget('SideInfo', array('title'=> 'weitere Infos:', 'infoContent'=>$this->infoText));
		}
		else{
			if($this->hasInfo){
				//$this->widget('SideInfo', array('content'=>$this->infoText), true);
				echo $this->infoText;
			}
		$this->widget('NewsPortlet', array('title'=> $this->title)); //Yii::app()->params['tagCloudCount']
		}
	}
}